package com.sptus.mapper.slave;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sptus.common.annotation.DataSource;
import com.sptus.common.enums.DataSourceType;
import com.sptus.entity.SptUser;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @Description: spt_user
 * @Author: jeecg-boot
 * @Date:   2024-09-24
 * @Version: V1.0
 */
@DataSource(DataSourceType.SLAVE)
//@DS("multi-datasource1")
public interface SptUserMapper extends BaseMapper<SptUser> {

    IPage<HashMap<String, Object>> getUserListPage(Page<SptUser> page, @Param(Constants.WRAPPER) QueryWrapper<SptUser> lambdaQueryWrapper);

    void removeUserById(@Param("id") String id);

    ArrayList<HashMap<String, Object>> getUserClass();
}
